<?php
$cat_url = '';
if (isset($this->pagescats[$page['category_id']])) {
    $cat_url = $this->pagescats[$page['category_id']];
    if (!isset($this->categories[$page['category_id']]))
        $cat_url = $this->categories[8];
}
?>
<h1 class="title"><a href="/<?php echo $cat_url['url'] . '/' . $page['url'] ?>"><?php echo $page['title'] ?></a></h1>
<p class="post-info">
    <?php echo (isset($cat_url['title']) ? ('Категория <a href="/' . $this->pagescats[$page['category_id']]['url'] . '">' . $this->pagescats[$page['category_id']]['title'] . '</a>') : '') ?>
    <?php echo $page['tags_html'] ?>
</p>
<p><?php echo $page['preview'] ?></p>
<div class="more-info"><img src="/img/page_small.png"/> просмотров:
 <?php echo !empty ($page['view']) ? $page['view'] : 0 ?>
    | <?php echo (isset($this->commentCnt[$page['id']]['cnt_comments']) ? ('<img src="/img/comment_small.gif"/> комметариев:' . $this->commentCnt[$page['id']]['cnt_comments'] . ' | ') : '') ?>
    <a style="font-size: 12px; font-weight: normal" href="/<?php echo (!empty ($cat_url['url']) ? $cat_url['url'] . '/' : '') . $page['url'] ?>">читать полностью</a></div>